$(document).ready(function() {
    var min = false;
    var max = false;
    var getVal = function() {
        min = s.getValue()[0];
        max = s.getValue()[1];
    };
    function filter() {
        if (min && max) {
            window.location.href = "?from=" + min + "&to=" + max;
        }
    }
    $(".filterPrice").click(filter);
    var s = $("#ex2").slider().on("slide", getVal).data("slider");
    $("#order").change(function(){
           window.location.href="?order="+$("#order").val(); 
        });
   
});